import {Component, OnInit} from "@angular/core";
import {FeedBack} from "../entity/FeedBack";
import {NgForm} from "@angular/forms";
import {UserService} from "../service/user.service";

@Component({
  selector: 'feedback',
  templateUrl: './feedback.html',
  styleUrls: ['./personal_set_people.css'],
})
export class FeedBackComponent implements OnInit{
  feedback:FeedBack=new FeedBack;
  constructor(public userservice:UserService){}
  ngOnInit(): void {
  }
public onSubmit(personalsetFrom:NgForm,feedback:FeedBack){
  this.userservice.InsertFeedBack(feedback);
}
}
